//
//  CLGAVPlayerViewController.h
//  CLGPlayerDemo
//
//  Created by GuochengLiu on 2016/11/28.
//  Copyright © 2016年 sumavision. All rights reserved.
//

#import <UIKit/UIKit.h>
@import AVFoundation;
#import "CLGAVPlayerPlaybackView.h"

@interface CLGAVPlayerViewController : UIViewController

@property (weak, nonatomic) IBOutlet CLGAVPlayerPlaybackView *playbackView;

@property (strong, nonatomic) AVAsset *asset;
@property (strong, nonatomic) AVPlayerItem *playerItem;
@property (strong, nonatomic) AVPlayer *player;


@property (strong, nonatomic) NSURL *mediaURL;
@property (assign, nonatomic) BOOL autoPlay;

- (instancetype)initWithMediaURL:(NSURL *)mediaURL;

- (void)play;
- (void)pause;

@end
